package jym.tan.movielibrary.component.ui.dialog;

import jym.tan.movielibrary.component.base.BaseDialog;
import jym.tan.movielibrary.constant.ComponentConstant;
import jym.tan.movielibrary.factory.ComponentFactory;
import jym.tan.movielibrary.logger.LibraryLogger;

public class SingleMovieAddDialog extends BaseDialog {

	private static final long serialVersionUID = 23L;

	public SingleMovieAddDialog() {
		super(ComponentFactory.getLibraryFrame(), ComponentConstant.Title.ADD_SINGLE_MOVIE_DIALOG);
		LibraryLogger.initMessage(getClass().getSimpleName());
	}

	@Override
	public void initialize() {
		setContentPane(ComponentFactory.getSingleMovieAddPanel());	
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		pack();
		setLocationRelativeTo(ComponentFactory.getLibraryFrame());
		setResizable(false);
	}
}
